<table cellpadding="3" cellspacing="3" border="0" width="100%">
              <?php if($data->status == 1): ?>
                  <tr class="new1">
                  <td width="15%"><?php echo $data->name; ?></td>
                    <td width="70%"><a href="<?php echo Yii::app()->createUrl('user/inbox/view',array('id'=> $data->id)); ?>">
                      <?php echo $data->content; ?></a></td>
                    <td width="15%"><?php
                        $date = new DateTime($data->date);
                        echo $date->format('d-m-Y');
                    ?></td>
                  </tr>
                <?php else: ?>
                <tr class="new">
                  <td width="15%"><?php echo $data->name; ?></td>
                    <td width="70%"><a href="<?php echo Yii::app()->createUrl('user/inbox/view',array('id'=> $data->id)); ?>"><?php echo $data->content; ?></a></td>
                    <td width="15%"><?php
                        $date = new DateTime($data->date);
                        echo $date->format('d-m-Y');
                    ?></td>
                  </tr>
              <?php endif; ?>
                </table>